package com.baboba.rummy.cards;

public class ColorCard extends Card {
	private Color color;

	public ColorCard(int number, Color color) {
		super();
		setNumber(number);
		this.color = color;
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	@Override
	public String toString() {
		return "ColorCard [color=" + color + ", number=" + getNumber()
				+ "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((color == null) ? 0 : color.hashCode());
		return result;
	}

	
}
